T
Any type.
Platform Core .NET Assemblies API
Find<T>(IEnumerable<T>,Predicate<T>,T) Method
See Also  Send Feedback
Terrasoft.Common Namespace > CollectionUtilities Class > Find Method : Find<T>(IEnumerable<T>,Predicate<T>,T) Method
source
Searched object.
match
Search criteria.
defValue
Search result by default.

Glossary Item Box

Search an element by specified criteria.

Syntax

 
C#
 
 

Parameters

source
Searched object.
match
Search criteria.
defValue
Search result by default.

Type Parameters

T
Any type.

Return Value

Found objects if the search was successful; otherwise - default result (defValue).

Exceptions

ExceptionDescription
ArgumentNullOrEmptyExceptionIf the match parameter, which specifies the search criteria, is empty.

Remarks

Extensible type for the classes that implement IEnumerable interface.

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

© Terrasoft 2002-2018.